# -*- conding:UTF-8 -*-

'''
@ Project: p7_flask
@ File: task.py
@ Author: 师路遥
@ Date：2022/6/6 15:11

'''

from ronglian_sms_sdk import SmsSDK
from celery_tasks.main import app

accID = '8aaf0708804ba563018064a23a9b0614'
accToken = 'f87e2e898cbf45418675af72e0e08b88'
appID = '8aaf0708804ba563018064a23bd6061b'

@app.task
def sms_code(mobile,code):
    tid = '1'
    datas = (code,'5')
    rest = SmsSDK(accID,accToken,appID).sendMessage(tid,mobile,datas)
    return rest